FROM centos:7

LABEL maintainer="840112979@qq.com" 
LABEL version="1.0"
LABEL description="OPENRESTY ENV"

WORKDIR /usr/local/soft/openresty

ADD openresty-1.19.3.1.tar.gz  /usr/local/soft/openresty/

RUN \
cd openresty-1.19.3.1 \ 
&& yum install -y pcre-devel openssl-devel gcc curl wget perl make \
&& ./configure --prefix=/usr/local/openresty \
&& gmake \
&& gmake install 



EXPOSE 80 443
